import request from '@/tools/request'

export function permissionCreate(data) {
  return request({
    url: '/permission/create',
    method: 'post',
    data
  })
}

export function permissionFindAll(data) {
  return request({
    url: '/permission/findAll',
    method: 'post',
    data,
    loading: false
  })
}

export function permissionFindOne(data) {
  return request({
    url: '/permission/findOne',
    method: 'post',
    data
  })
}

export function permissionUpdate(data) {
  return request({
    url: '/permission/update',
    method: 'post',
    data
  })
}

export function permissionRemove(data) {
  return request({
    url: '/permission/remove',
    method: 'post',
    data
  })
}

export function permissionRemoveBatch(data) {
  return request({
    url: '/permission/removeBatch',
    method: 'post',
    data
  })
}

export function permissionCreateBatch(data) {
  return request({
    url: '/permission/createBatch',
    method: 'post',
    data
  })
}
